package com.heima.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author nan
 * @since 2024-06-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TbSku对象", description="商品表")
public class TbSku implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "sku_id", type = IdType.AUTO)
    private Long skuId;

    @ApiModelProperty(value = "商品名称")
    @TableField("sku_name")
    private String skuName;

    @ApiModelProperty(value = "商品图片")
    @TableField("sku_image")
    private String skuImage;

    @ApiModelProperty(value = "基础价格")
    @TableField("price")
    private Integer price;

    @ApiModelProperty(value = "商品类别Id")
    @TableField("class_id")
    private Integer classId;

    @ApiModelProperty(value = "是否打折促销")
    @TableField("is_discount")
    private Boolean isDiscount;

    @ApiModelProperty(value = "净含量")
    @TableField("unit")
    private String unit;

    @TableField("brand_Name")
    private String brandName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
